import Router from 'koa-router';
import { addOrg, deleteOrg, updateOrg, getOrgList } from '../../../controller/api/orgManage/index';

const orgRouter = new Router();

// 新增组织
orgRouter.post('/addOrg', addOrg);

// 删除组织
orgRouter.post('/deleteOrg', deleteOrg);

// 更新组织
orgRouter.post('/updateOrg', updateOrg);

// 查看组织
orgRouter.post('/getOrgList', getOrgList);

export default orgRouter;